home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / rbbs_pc / rbtch180.zip / EXAMPLES.ZIP / PHASE1C.BAT < prev    next >
DOS Batch File  |  1992-05-31  |  4KB  |  78 lines

  1. REM       %1 = path/filename.extension, %2 = extension
  2. REM       %3 = node number, %4 = filename(no period or extension)
  3. REM       %5 = the path to your upload directory (no trailing backslash)
  4. REM
  5. REM       Note that gate%node% is used here.  If you do not use
  6. REM       GATEWAY substitue you COM port here instead ( > COM1 )
  7. REM
  8. REM       %node% is from the SET NODE=1, SET NODE=2, etc. in your
  9. REM       Autoexec.Bat or your batch file that runs your DV
  10. REM       Node Window
  11. REM
  12. @echo off
  13. if %2 == ARJ GOTO :ARJ
  14. if %2 == ZIP GOTO :ZIP
  15. if %2 == GIF GOTO :GIF
  16. if %2 == LZH GOTO :LZH
  17. GOTO :END
  18. :ZIP
  19. if not exist %1 GOTO :END
  20. echo.                                                                 > gate%node%
  21. echo.                                                                 > gate%node%
  22. echo       ╔════════════════════════════════════════════════════════╗ > gate%node%
  23. echo       ║            Checking ZIP Intergrity of Upload           ║ > gate%node%
  24. echo       ╚════════════════════════════════════════════════════════╝ > gate%node%
  25. echo.                                                                 > gate%node%
  26. echo.                                                                 > gate%node%
  27. pkunzip -t %1 > NUL
  28. if errorlevel 1 GOTO :DEL
  29. GOTO :END
  30. :LZH
  31. if not exist %1 GOTO :END
  32. echo.                                                                 > gate%node%
  33. echo.                                                                 > gate%node%
  34. echo       ╔════════════════════════════════════════════════════════╗ > gate%node%
  35. echo       ║            Checking LZH Intergrity of Upload           ║ > gate%node%
  36. echo       ╚════════════════════════════════════════════════════════╝ > gate%node%
  37. echo.                                                                 > gate%node%
  38. echo.                                                                 > gate%node%
  39. lharc -t %1 > NUL
  40. if errorlevel 1 GOTO :DEL
  41. GOTO :END
  42. :ARJ
  43. if not exist %1 GOTO :END
  44. echo.                                                                 > gate%node%
  45. echo.                                                                 > gate%node%
  46. echo       ╔════════════════════════════════════════════════════════╗ > gate%node%
  47. echo       ║            Checking ARJ Intergrity of Upload           ║ > gate%node%
  48. echo       ╚════════════════════════════════════════════════════════╝ > gate%node%
  49. echo.                                                                 > gate%node%
  50. echo.                                                                 > gate%node%
  51. arj t %1 > NUL
  52. if errorlevel 1 GOTO :DEL
  53. GOTO :END
  54. :DEL
  55. del %1 > NUL
  56. :GIF
  57. echo                                                              > gate%node%
  58. echo.                                                                 > gate%node%
  59. echo.                                                                 > gate%node%
  60. echo.                                                                 > gate%node%
  61. echo.                                                                 > gate%node%
  62. echo.                                                                 > gate%node%
  63. echo.                                                                 > gate%node%
  64. echo.                                                                 > gate%node%
  65. echo       ╔════════════════════════════════════════════════════════╗ > gate%node%
  66. echo       ║                        ****                            ║ > gate%node%
  67. echo       ║          The Policies of this BBS state that           ║ > gate%node%
  68. echo       ║              GIF's are UNWANTED FILES!                 ║ > gate%node%
  69. echo       ║       THE UPLOADED .GIF FILE HAS BEEN DELETED!!!!      ║ > gate%node%
  70. echo       ║                        ****                            ║ > gate%node%
  71. echo       ║            You agreed to these Policies when           ║ > gate%node%
  72. echo       ║              you first logged onto this BBS            ║ > gate%node%
  73. echo       ║                    as a New User                       ║ > gate%node%
  74. echo       ╚════════════════════════════════════════════════════════╝ > gate%node%
  75. del %1 > NUL
  76. :END
  77. seterror 0
  78.